package com.zxc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxc.entity.wechat.PersonInfo;
import com.zxc.entity.wechat.WechatAuth;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface WechatAuthMapper extends BaseMapper<PersonInfo> {

    /**
     * 微信注册
     *
     * @param personInfo 微信注册信息
     * @return 返回值
     */
    Integer register(PersonInfo personInfo);

    PersonInfo getPersonInfoByOpenId(String openId);
}
